package online.yangcloud.core.model.request.file;

import org.springframework.web.multipart.MultipartFile;

/**
 * @author zhuboyang
 * @since 2023年06月03 18:29:41
 */
public class FileUploadInstance {

    /**
     * 上传的文件流
     */
    private MultipartFile file;

    /**
     * 文件块参数
     */
    private String parameter;

    public MultipartFile getFile() {
        return file;
    }

    public FileUploadInstance setFile(MultipartFile file) {
        this.file = file;
        return this;
    }

    public String getParameter() {
        return parameter;
    }

    public FileUploadInstance setParameter(String parameter) {
        this.parameter = parameter;
        return this;
    }

    @Override
    public String toString() {
        return "FileUploadInstance["
                + " file=" + file + ","
                + " parameter=" + parameter
                + " ]";
    }
}
